package cn.iocoder.yudao.module.design.convert.problem;

import cn.iocoder.yudao.framework.common.pojo.PageResult;
import cn.iocoder.yudao.module.design.controller.admin.problem.vo.*;
import cn.iocoder.yudao.module.design.dal.dataobject.problem.ProblemDO;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

import java.util.List;

/**
 * 项目问题 Convert
 *
 * @author 芋道源码
 */
@Mapper
public interface ProblemConvert {

    ProblemConvert INSTANCE = Mappers.getMapper(ProblemConvert.class);

    ProblemDO convert(ProblemCreateReqVO bean);

    ProblemDO convert(ProblemUpdateReqVO bean);

    ProblemRespVO convert(ProblemDO bean);

    ProblemRespDetailVO convertDetail(ProblemDO bean);

    List<ProblemRespVO> convertList(List<ProblemDO> list);

    PageResult<ProblemRespVO> convertPage(PageResult<ProblemDO> page);

    List<ProblemExcelVO> convertList02(List<ProblemDO> list);

    List<ProblemSimResVO> convertSimList(List<ProblemDO> list);

}
